package com.chen.demo.javase.patterms.strategy;

import com.chen.demo.javase.patterms.AbstractShopClient;

/**
 * 策略模式测试
 *
 * @author chenhongwei
 * @date 2020/3/29 18:57
 **/
public class StrategyClientTest extends AbstractShopClient {

    public static void main(String[] args) {
        cart.setDiscount(new NewerDiscount());
        //注入不同的优惠策略
        cart.submitOrder();
    }
}
